package com.anyou.mall.fin.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import com.anyou.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.anyou.common.core.domain.BaseEntity;

/**
 * 订单金额管理对象 fin_order_amount
 *
 * @author gaochaohao
 * @date 2022-04-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "订单金额管理")
@TableName(value = "fin_order_amount")
public class OrderAmount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单管理编号 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("订单管理编号")
    private Long orderAmountId;

    /** 订单编号 */
    @ApiModelProperty("订单编号")
    @Excel(name = "订单编号")
    private Long orderId;

    /** 平台抽佣 */
    @ApiModelProperty("平台抽佣")
    @Excel(name = "平台抽佣")
    private BigDecimal commission;

    /** 商家所得 */
    @ApiModelProperty("商家所得")
    @Excel(name = "商家所得")
    private BigDecimal deserved;

    /** 删除标志：0未删除，2已删除 */
    @ApiModelProperty("删除标志：0未删除，2已删除")
    private String delFlag;

    /** 消费订单号 */
    @ApiModelProperty("消费订单号(按照这个字段进行订单编号搜素)")
    @TableField(exist = false)
    private String orderNo;

    /** 订单完成时间 */
    @ApiModelProperty("订单完成时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm",timezone = "GMT+8")
    private Date completeTime;

    /** 汽配商编号 */
    @ApiModelProperty("汽配商编号")
    @TableField(exist = false)
    private Long carPartsShopId;
}
